package xty.user.service.impl;

import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Service;
import xty.user.dao.IMongoStudentDao;
import xty.user.entity.Student;
import xty.user.service.IMongoStudentService;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by XieTianYi on 2020/1/29.
 *
 * @author XieTianYi
 */
@Service
public class MongoStudentServiceImpl implements IMongoStudentService {
    @Resource
    private IMongoStudentDao mongoStudentDao;

    @Override
    public List<Student> find(Query query) {
        return mongoStudentDao.find(query);
    }

}
